<?php
class cookies extends base {
	private $path;
	public function __construct(){
		
		$this->path='/';
		parent::__construct();
	}
	public function setUserCookies($arr,$s=0,$t=0){
		setcookie('user[id]', $arr['id'], time()+3600*24, $this->path);
		setcookie('user[acc]', $arr['acc'], time()+3600*24, $this->path);
		setcookie('user[pass]', $arr['pass'], time()+3600*24, $this->path);
	}
	public function delUserCookies(){
		setcookie('user[id]', $arr['id'], time()-3600*24, $this->path);
		setcookie('user[acc]', $arr['acc'], time()-3600*24, $this->path);
		setcookie('user[pass]', $arr['pass'], time()+3600*24, $this->path);
	}
	public function setMusicCookies($arr,$t){
		setcookie('music[id]',$arr['id'],time()+3600*24,$this->path);
	}
	public function delMusicCookies(){
		setcookie('music',time()-3600*24,$this->path);
		
	}
	
	public function set_login_referer($str=null){
		setcookie('login_referer', $str, time()+3600*24, $this->path);
	}

	
}
?>